package com.lagou.rpc.consumer.server;

import com.lagou.rpc.api.IUserService;
import com.lagou.rpc.consumer.proxy.RpcClientProxy;
import com.lagou.rpc.pojo.User;
import org.springframework.stereotype.Service;

@Service
public class UserServer {
    /**
     * 创建代理对象
     * @return
     */
    public IUserService getIUserService(){
        return (IUserService) RpcClientProxy.createProxy(IUserService.class);
    }

}
